package lesson.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lesson.entity.NocvNews;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description:
 * @Author: Wanzhen
 * @Date: 2022/6/13-18:47
 */
public interface NocvNewsMapper extends BaseMapper<NocvNews> {

    //根据最新发布时间倒序截取5个数据
    @Select("select * from nocv_news order by create_time desc limit 5")
    List<NocvNews> listNewsLimit5();

}
